Fixed an embarrassing bug on mesures.
Uses set, instead of bag, for testing the inserter.
Try to remove MS security warnings.