Removed a bunch of repeat code in the SpeedController class