Wrap modules in self invoking functions