Support wrapping for self executing function