Extracted internals to a specific header.
Added ConditionVariable.