Integrate import/export feature. Export funtion not test yet.