Added pauseondisconnect variable.