Add termination criteria.
Only draw lines if match was found.
Lower feature count.