Updated to use new LogWriter