Added template support to module loading.