Lets move those requires to the top. We register a load hook, and we want to be sure that it is executed once everything has been loaded.