Filled out most of flare_feature_calc