Add change archive function