Handle errors more gracefully. Allow command line flag to start at place other than zero.