Added global pause and resume functions.