Adding Smart Trend feature