Added repository factory