Updated the way you can add modules to HAL to avoid the call to the module factory when adding them yourself