Basic save state functionality, no loading.

Ok fine