Adding output to file