Added radial threshold function