Added condition variables.