Archive function update and exit handling.