Complete re-filter logic.