Add pause/resume functionality