Cross platform pause

pls merge kthxbai