Remove external variable declaration code.
I had misunderstood the use of external variables.