Use properties instead of globals