Hacked in stdin streaming support for file mode