Changing the way of setting the failure value