Add singleton Mongo code. Add format stubs.