Setting the reset switch