Added support for pausing recording