Added a-lurkers proposed changes to speed up message porcessing.

Please review.