Adds constrain method to Util.