Refactored module loading from assets.