Encoder Functions changed to read right encoder