Added state dump method