Thank you for your replies. I will use a junction box, although the wires are just 1 or 2 inches shorter to the panel.