Add option repo in update function