Some work on BLT generation
Added frontendy bits