If you ask 500 iterations the system crash. There should either be a max value or it would be better to deal correctly with the amount of data kept in memory.