Reorder inputs for better training and more informative output in main
cycle.