Preparation for data saving