Added getLastEffect and invokeAndGetDeps