Added some basic logging.