Adding Condition variables