The most important function of the skin is