Fixed smurf code to handle enable and disable.