Add constraint classes.