Repository factory functionality added