Insert flags in analysis function.