Input can be filtered.
Main flow chart.