Improve and test motor module.