Changed to saving output to append