Pass allowed modalities as list.