Avoid repeating gaps and intervals check