Added support for external .txt file