Integrated cell generation function.