Updated trend fitting