Added all necessary safe guards to protect the subrequest streaming feature.