Imported CityRacing code.