Working with message handling and reordering of events