Added TODO note to move analytics out fo global scope.