Updated streaming and getLast APIs