#7: Corrected recursive addition/removal of nodes