Added support for connections between overlapping boxes.