Added first bits of LFG code