Updated the order of sending messages when delay is involved