Change Api.
- remove on*, off* methods
- add set/getFlag method