Moved encoder calls from drive so that line can use drive