Assembly calculations for pit avoidance