Remove print statement from encoder