Add save and import function. Standalone version will be added later.