Add in the boundaries code I previously removed.