Add saveSync and autosave option