Start on code for metadata table