Added support for module logging.