Moved analytics to external file.