Used condition variable for waiting critness in bctl