Added in radius subfunction.