Modify the state stuff, add stop method in uninit method.