Adds table directive and reference table