Serialise all state in genotypes