Latest update on script.
Function needed to calculate inherent number.