Changed output to files