Changed a few things inside the calculation of the next blocks, this ensures it always find the next blocks