Add archive logic