Implemented encoding