Basic save state functionality, no loading.