Re-order main()