DC motor related fixes.