Renamed radius variable to diameter