First (untested) draft of hbl part