Added generation fragments

Most changes are related to dealing with pileup