Indent and remove cpu loop