Writing to file performed