Removing Lattice code ... not very useful at the moment and needs to be rewritten.