Add setRepositories method