Naively calculated state machines from exposed functions on spark cores.