Pass through code for motion.

Pass through code for motion. Not compile tested.
Merge pull request #6 from mikemcfarlane/master

Pass through code for motion.