Added encoder print statements