More work on networking.
Cleaned garbage.