Added encoder drive mothod