Added archive and unarchive functionality