updated file to support logging.