Some of the state will need a timeout to go to idle or something. How do you do that? Can somewhere give an example?