Working towards getting module to load correctly, if this code works, then module loading only requires clean up