Number of trials is last thing to write (to indicate IO is done)
Small hack to give different colors to different tasks.