Added segment completeness check