Add time.sleep(1) to auto-off