Adding node loop