Add option to only include certain number of pages