Use mwait and remove silly msleep usage