Added onStartup protection for when it's already running (would never run the tasks)