Automatic pager using ag