Add automatic home relations generation.