Trying another solution for pause/resume feature