Restored inbound.c to make the pull request cleaner.