Modify stub to take an appended text file (initial implementation)