Added analytics stuff