Added .txt file support