Add mutator for self nodes

This branch adds a mutator for self nodes.