New functions (time and get_trends).