Added FileWriterThread