Adding basic logging.