Finished implementing Mongo support.