Properly load modules in the background process.