Added enable and disable functionality.