Add loggingOn flag, true by default.