How to pause a sweep

I am using the micro servo and the sweep program https://www.arduino.cc/en/Tutorial/Sweep. I would like to pause the sweep motion once the servo arm has reached 0 and 180 degrees. Any thoughts how this could be done?

Thanks!

tonumikk:
Any thoughts how this could be done?

How do you think it might be done - even if you don't know the exact code required?

...R