Updated local logic.