Added paused functionality