Added ability to specify trend