Added trends processing.