Implemented Tony's modification to use data stream instead of temp file.
Made a quick change to fix the paths.
Merge pull request #1 from PoppySeedPlehzr/dev

Implemented Tony's modification to use data stream instead of temp file.