First pass at smooth motor-control module.