Photolysis of mixtures of CO:NH3:H2O at 12 K results in the formation of an organic residue which is not volatile in high vacuum at room temperature. Analysis of this fraction by GC-MS resulted in the detection of C2-C3 hydroxy acids and hydroxy amides, glycerol, urea, glycine, hexamethylene tetramine, formamidine and ethanolamine. Use of isotopically labeled gases made it possible to establish that the observed products were not contaminants. The reaction pathways for the formation of these products were determined from the position of the isotopic labels in the mass spectral fragments. The significance of these findings to the composition of comets and the origins of life is discussed.