Architectural history

What is a principal structural role of a flying buttress on a Gothic church?