Added simple logging.