Implement callback support for encoders