Added ability to relate tables.