Added archiving to tasks