Initial file is written