Added paging support and some minor refactoring
Only try to get paging information if it's paging compatible