Revert the changes to original encoder example