Moved StateModel to Timer-like prototype definition because I like it.