Added the possibility to set pause.