Added an if condition to 'pager' number