Basic save state functionality, no loading.

Can we wrap this? Getting tricky to see in the review window.