Made a start with the CGA signature generation function