Added onStart() callback to StateGraph.