Added ability to toggle ranges of either rows or columns.