Controlling speed and position with DC Motor Encoder.