Allow passing of stream rather than filename.