Adding code to retain filter parameters, when possible, when replacing
existing filter with new filter