Implemented archiving for finished tasks