Took care of performance problem caused by restarting chord search every time.