Improve configurability of mongo.