Fixed up cubic add_boundaries...did some basic checking seems to work