Fixed using too much CPU