added the upperLimit check for the screw lift.