Use the good code to check for errors.