Genericized the destination to accept any stream, rather than a path whi...

...ch then required an output to a file stream.