Better triangles algo. Chain inspection done, too.