Add beginnings of LoggingThread