Refactored TrendVector.