Pause and Resume

Implemented pause resume