Adding functions to manipulate locals from calling functions