Renamed repex 'protocol' to 'options' to avoid confusion.
Fixed error in specifying number of iterations.