Added generic gather and relationship generator