Added and wrapped node generation code.