First stab at InputStream support