Split out code from main()
Avoid abbreviations