This method is called after everything has been loaded. It sets up various variables related to tasks.