Added private setter.
Asserts will be this will be removed with -DNDEBUG