Update repository to support update modes