Working progress on DBN class... don't use it yet...