Add --with-nth option

As suggested in #102.