Added Encoder. Does rotation encoding.