More untested code to produce boundary info