Tons of changes, prints output to file.