Began writing the logging thread