Added max speed variable to servo