Can now check both row and column