Added some analytics stuff