Implemented recursive searching of other tables.