maxRows option

An option to limit the expansion to a given maximum number of rows.