Updated popcorn and mixpanel script