Add options to limit number of rows and start offset when tabulating stored values to workaround OOM errors
Fix indenting