Not yet finished, some problems of saving data