Similar to PR #331, enclose all a-pf directives in IIFE's to prevent access globally and avoid name/function conflicts.