Order of checking matters slightly.