Update server function.