Added Mongo function and cleaned up a few extra spaces