Modified mongodb tool.