Cleaned up old code that is superceded by TextFileWidget.