What does the outer layer of the leaf do.