resolves issue #45 by adding polling time and iterations as parameters.