Added analytics (and a method to disable them).