Reduce code repitition in main()
Use ALL_CAPS for constants