Function to pause streaming added and works.