Changed to use CHECK-TYPE instead of ERROR.