A multiple task hierarchical state machine with BSD license.