Implementation of new network model. TODO: fix transformation issues.