Added a function to ArchiveActivity