Fixed problems with analysis script.