Implement encoder