Firt run
Printing to file works correctly