Added a PagerFactory class.