Purpose and function of pyramids