Adding enable and disable methods

I just needed both, I hope they will be useful to somebody else.