Add a setEnabled method