Improve processing of receiving messages