Added iterations, epsion, seed and debug parameters.