Controlling the DC motors