NS added more functions to compute target descriptors