Implemented final node generation