Its function is thermoregulation (the maintenance of body temperature between certain parameters) of the body.