Shortening is traditionally used in pastries such as cookies, pie crusts, cakes or frosting to give it a tender texture. It has a higher smoke point than butter and margarine (it is less flammable), leading to its use in deep-fat frying and as a pan coating to prevent baked goods from sticking