Add support for trends