Merge pull request #14 from williamjacksn/r4

Fix table creation order