Implemented first pass on nodes