Created abstract base class for FSM threads.