Basic logic for working our way through inbound messages.