All function variables to locals