Edited based on MongoStuff | InsertMongo.js