Support self loops