Added support for pausing and resuming stream