setInterval or the Modulus way is not working correctly, well at least not with small files in big numbers.