Moved email var's from global to main()