Added search constraint to ensure all numbers over 10 are combined correctly.