Modify to produce tidy in txt format