Make data a global var