added pause functions