Moved pager logic to module