Refactored RenderPrograms