Introducing a scan-length limited generic heuristic