Why the temp variable?