configureDisplayProgram refactored.