Added R value to be interest filter
Fixed rule generation