Adding getInputStream method