Added a little bit of motor code.