Rearranged validation.