Add new function and define node types