Make the save function private