Adding a second finite state machine for plotting various measures.