Move out save file logic