Added logging when loading modules.