Add client filter loop

Loop was stracing near line 920, added a CLIENTFILTER loop to guard this for loop.