Added PauseNode code