Added rotary encoder