Made generic the render fields and render settings functions for reuse.