Handle arbitrary columns and rows.