Adding support for storing trends