Added the SurfaceEdges function.