Minor bug fixes
Script was iterating over all nodes twice over
whoops.