Code cleanup - use argind as intended in main().