Moved generator functions to geneate H and C