Added condition variables