Reverting to use nopt for argument parsing