Added 'edgeConnectPoints' argument.