I am much more satisfied with the require loading code now.