Place Submit safely in a separate thread