Changed RR variable to maxRowsPerPage; Changed CC variable to maxColumnsPerPage