Added the new Analytics function