Added cellgen for custom profiles

I'm not sure if it works... No guarantees.