added checks for redundant calls to setPaused()