Accounting for variables in additive manufacturing