Cooldown algorithm fix from jf