Don't use int declaration inside for loop, for better compatibility