Modified filtering for better spread of values.