Script now waits until the game is logged in before executing tasks.