Repository now supports replace flag on add()