Updated getEnvironmentSetUp to registerBootedCallback