Make pause and play functions.