Updated smart-pause.py