Added isSafetyOn Procedure with Conditionals

Procedure Funtion and a Conditional with a Nested Conditional added to
code