More Network Rewriting and other misc stuff.