Redefine invoke only once to avoid stack overflows