Changed contestation logic to use margin, not threshold