Removed unnecessary error logging.