Quietened down logging.
Updated error handling.