Wrap dist in IIFE.