Added custom node reference garbage collection