Added join tables correctly.