Added the option to join the same relation multiple times.