Destroying temp var implemented