Making repeat configurable through the parameters passed in.