Added afterWrapAll event