Changed pageNumber to integer