Removed local var 'stream'