Added start of handling for liveVars in functions.