Changed parameter order of afterFunc callback