0.4.2 Added a maximum iterations parameter to the api function.