Basic table generation. Still to test.