Fix runaway CPU issue. Add comments.