Simplified traits. Originally forked from an internal project which had non-string based metrics as well.