Hook up pause functionality