Added some data analysis stuff.