Added Write to file