Pass pointer to nodedef directly to avoid recalculation in quite often called function