Added support for 2 pass prince pagination solution