TODO: More notes on archive-thread and race conditions.