Renamed render_fun as body_fun to avoid compile error