Switched around x and y for rows and cols