Added CBN utility function for use in code to node implementation