Enhance Network code

Improve GC