Adding global env functionality