Filtering now initialized by CUTOFF_COSTS. Some more tiny changes.