Complete version working for repositories with pagination and on demand repository data loading