better handle with error - be sure to do not use stats.size
if existMaxChecks < 0 means check forever