Need to correct max_edges stuff that is happening.