Added pause/resume functions

Added pause/resume functions