A flying buttress functions to transfer the weight and lateral forces of the walls to supporting piers located outside the main structure. This allows Gothic cathedrals to have taller walls with large windows by countering the outward thrust of the arched vaults. Flying buttresses are essential structural elements that work together with the vaulted ceilings and thick exterior walls to support the entire Gothic architectural design.