KF now calculates template within first 30 cycles and does not segment signal anymore