Added encoder enable function
Added encoder disable function