Added support for pause