Main updated with the file sync threads