Added support for multiple repositories.