Added text file support