Need to put var before variable (else they are global).