Currently the method only removes the first long gap it finds whereas it would be ideal to remove all gaps longer than the specified length.