SaveState function

Learn technical details about the SaveState function.