HUG snippet (inspired by @otfrom)