Improves the _invoke method