Moved server update to update function.