Add getAsTable method.