Imported from https://github.com/IdeasLabUT/CHIP-Network-Model