Why we are using local repository method?