Added a feature to detect circles (not tested yet)