Created "pause" method and implemented after every segment