Added file out writing.