Small change to statechart API.