Added comsole utility for state saving