Code cleanup
Reporting incoming messages to the upper layer