Added a self-executing anonymous function plugin wrapper