Add actorWeightCalculation function