Convert to global vars