Generating Functions in GD