Changed IsValid() call.