Fixed a bug in saving.
Started inbound packet handling.