Working on looping to retrieve all results, not finished