Remove debugging output
Fixed condition_variable bug leading to deadlocks