Mmm, flowcharts.

(source)