Add motor direction functions