Removing unused prev_node