Added merge filtering.