Thank you! This is very helpful. I will look into nsview and looping over the pages.