Add Encoder interface.