Main utility.