Moved some code around and renamed postPreloadSetup() to setup()