Added IIFE as scope block for validation