Cleaning up.
Preparing for network code.