jh - moved Jirakit's code to pause menu script