Rewrite of motor control pub