Added getRepositories function