Prepare to new API.
Change Api.
- remove on*, off* methods
- add set/getFlag method
Typo.