Move if-statement for pause in pause()