We need to check and log errors.