Added server save function.