Better write to file