Added hook function to intercept node attributes output