Added a motor abstraction.