add pause method and set parameters