Repository constructor changed