Implement encoder events