Added render_table function