Added MongoDB logging.