Prevent the busy loop from being too busy.