Added automatic IIFE wrapping