Now outputs to a txt file instead of an HTML file.