Existing repo logic