Shouldn't we maybe check whether the file is actually written before starting the project instead of sleeping? 
If we fail to write the file, what happens then?