Updated local variables using with