add pause() method