Working code using enable() disable()