Changed collection type from 'repository' to 'collection'