Added encoder events