Added new function fieldTrend