Edit local variable functionality