Refactored rendering methods. Added extension to response object.