Completed detection algorithm