Slim down main()