Things are coming together now. Switching to straight line code for edges.