Updated panel construction script