Renamed function loadModule to loadExtension