Fixed problem where pause blocks the GUI.