Add constraints.