Implemented removing of nodes