Added getStream API.