Changed output to X, finding rows/columns