Working LCG functions.