Add a forgotten loop in the RetrieveSources function.