Changed max records pulled at once to 200 from 250 to avoid php memory issues.