Rearrange messages