Added write in file
Better integration in written file