No uses variables globales!