Reworked 'gen_execute' implementation and changed UI to omit UOM if empty.