Trying to separate the motor tasks in the input/scanner threads into a motor thread.
Merging.