Added the possibility of adding inner nodes.