Adding network support, but still a problem with threads management.