Check motion position before passing into adapter
Merge pull request #19 from vubinaz/master

Merged pull request #19 - Check motion position before passing into adapter