Added state file so we don't get a continuous reboot loop