Allow user to specify max number of iterations (bug #479).
8 files changed