Added first code for emergency brake decision