Move condition variables to Archive class