Added circle detection