Tweak scheduler code.