Include optional hash in pagination.