Updated server codes.