This does most of the work for you…