Add constraint to definition