Changed brake_mode attribute to stop_mode