Added a few required variables for current page and last page