POC for saveState