Support save/restore instance state