Actually, stream should not be a resource