Updated paginate to reflect previous commit's changes.