Added mixpanel functionality