Adding setting of row and column counts.