Added builder WriteToFile