Add rotary encoder