Segment class changed

Require:
Segment control method runs 100ms.
After finish running, insert new variable and run method again