Added variant weighting and improved demo