Added persistence of repository