Make CreateMode configurable.
Log mode value.