Added new features to the pagination for more customizability.