Updated abstract rendering with helper functions.