Added trend analysis script