Fixed high cpu usage.