Removed code related to underConstrained, as it is unused (issue pointed out by @hpalikareva).