Added Enabling/Disabling function to attributes