Got system state storage and retrieval of state  to work!