Adding basic support for joins.