Better errors logging.