Logging and cmake changes.