Changed main to use moduleLoader