Added support for sequential states.