Auto-pause script