Change measurement interfaces to use numeric values rather than
arbitrary strings.