Brett… Take a look at this thread… Motion controller
I think all you need is in there with explanations!!