Use filter value when traversing array

Makes filter useful