Moving the logging creation higher in the wrap sections code.