Implement logfile and iterlimit options