Added renderingRows to get the rows that will be needed for rendering.