Added routing to main(), added skeleton functions to fill with Jeff's conversion code.