Both mask and weight generation now use the same label hash as the name