Added FILTER_THRESHOLD #define