Added new parameters on drawConnectionLines