Copied in HAB Supplies example code, tweaked and tested.