Adding setter for enum-set codes - not yet optimal