Make sure variable "i" is local