Initial version of analysis of states