Constraint.map works in threads