Ring detection seems to work, but more tests is needed.