Added paginate variable