Checking within single function works. Rows and columns are ignored.