 The ancestral function of the RNAi system is generally agreed to have been immune defense against exogenous genetic elements such as transposons and viral genomes . Related functions such as histone modification may have already been present in the ancestor of modern eukaryotes , although other functions such as regulation of development by miRNA are thought to have evolved later . 
