Added ESC pause function