Updated API to use the latest Mongo package