Implement module loader to main