Changed mgo util func signature.