Small modifications trying to understand how pager works..