Adding replace mode.