Add functions for rendering individual elements.