Use pagination in find function