Added stuff to perform the analysis.