Convert program to take a variable number of shaders.