Finish analysis script