Adding configurable logging.