Generate units from bf main