Change to use WriteWarning for some output messages