Now able to write to file