Updated node to get allocated on the heap