Rename gem to pagers and improve logic