Fixed to autonomous and made DEADBAND a constant