Added short pause to allow the message queue to be fully processed.