Seperate the panel and render array generater.