Updating logging and exception handling.