Changing the way checks for the error code are made.