Adds a toggleInputs option to the enable/disable functionality.