Correctly handle pause.