Moved WriteToDisk from main.h to main.cpp