Added clearInterval to pause and stop functions