Optimization: deleted motor direction functions