scheduleReboot call was commented out. Fixed that.