Added calculations for male and female.