Added a semblance of proper logging.