Created pauseControl method