Smarter local vars