Calculating descriptors function is added.