This will do scary things. We switch on pe_version being nil in many places. I'd suggest creating the metrics string conditionally based on if pe_version is nil.