Middle of save fn