Updated the functionality of the PageHelper class