Added encoders to code

Added encoders to code.