Add prototype for thread level cost_factors