Save state functionality

Put that in the comment in the code.