Send messages on a separate thread