Fixed bug in NetworkController. Tested and working