Changed "pageNum" var to "skip," adjusted constants accordingly