Eliminating local vars