Actually implemented contour selection for unrelated structures.