Added in halt mechanism and also auto mode