Added error handling for nth, although the preconditions don't seem to fire.