Adding scripts for Optimize and Analyze