Make Mongo work better with modules