Committing current code for the added TOGGLE_SWITCH. Will add to main source once confirmed.