There is support for pagers as a plugin now. Should reduce the code considerably.