Utils.invoke doesn't fit here because it can't pass arguments to the function