Fixed inconsistent use of node stage members. Updated debugging messages.