Created a module for specifically for the encoder